Inkjet printer correction device and method

ABSTRACT

An inkjet printer correction device and method. A correction device having a first circuit generating a first processing signal composed of a first and second pulse signal according to a first and second phase signal produced by an encoder, a second circuit generating a second processing signal based on the position change variation of either the first, or second phase signal, a third circuit generating a third processing signal based on the position change variation of either the first or second phase signal, a selector selecting one of the first, second, or third circuits according to the first processing signal. The present invention provides one of the first, second, or third processing signals to control the speed and position of motor of the inkjet printer.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates in general to an inkjet printer correction device and method, and in particular to controlling the speed and position of a motor in the inkjet printer.

2. Description of the Related Art

The encoder inside a conventional the printer, outputs inconsistent duty-cycles due to different manufacturing methods. Typically, a correction device is employed to direct the numerals encoders to generate perfect duty-cycles for controlling the speed and position of a motor. This solution however a suffers as it does not increase printing quality, due to the frequent position shifts required to cope with imperfect duty-cycles.

U.S. Pat. No. 5,170,416 discloses an encoder duty-cycle correction device and method for directing an encoder moving on an encoder strip to generate phase signals. A first signal 13 produced based on the position change variation, from high level to low level, of one of the phase signals. The first signal is provided to a divider generating a second signal. Thereafter, the second signal is corrected to become an encoder signal resulting in all signals having the same period.

SUMMARY OF THE INVENTION

Therefore, an object of the present invention is to provide an inkjet printer correction device and method, controlling the speed and position of a motor in the inkjet printer.

The present invention achieves the above-indicated objects by providing a correction device and method, for an inkjet printer with correction device for processing a first and second phase signals, which are both period signals, produced by an encoder on an encoder strip.

The correction device comprises a first circuit generating a first processing signal composed of a first and second pulse signals according to the first and second phase signals, both are generated pulse signals based on the position change variation of first and second phase signals, a second circuit generating a second processing signal based on the position change variation of either the first or second phase signals, a third circuit generating a third processing signal produced based on the position change variation from a first level to a second level of either the first or second phase signals, a selector selecting one of the first, second, or third circuits according to the first processing signal to control the speed and position of the inkjet printer motor.

BRIEF DESCRIPTION OF THE DRAWINGS

The following detailed description, given by way of example and not intended to limit the invention solely to the embodiments described herein, will best by understood in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram of the correction device in accordance with the first embodiment of the present invention;

FIG. 2 is a circuit diagram of the first circuit in accordance with the first embodiment of the present invention;

FIG. 3 is a circuit diagram of the second circuit in accordance with the first embodiment of the present invention;

FIG. 4 is a circuit diagram of the third circuit in accordance with the first embodiment of the present invention;

FIG. 5 is a first waveform diagram of the encoder in accordance with the first embodiment of the present invention;

FIG. 6 is a second waveform diagram of the encoder in accordance with the first embodiment of the present invention;

FIG. 7 is a third waveform diagram of the encoder in accordance with the first embodiment of the present invention;

FIG. 8 is a block diagram of the inkjet printer with correction device in accordance with the second embodiment of the present invention;

FIG. 9 is a flow chart of the correction method in accordance with the third embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION First Embodiment

FIG. 1 is a block diagram of the correction device in accordance with the first embodiment of the present invention. A correction device 30 comprises a first circuit 302, a second circuit 304, a third circuit 306, and a selector 308, processing a first phase signal A₁ and a second phase signal A₂ produced by an encoder 20 on an encoder strip 10.

FIG. 2 is a circuit diagram of the first circuit in accordance with the first embodiment of the present invention. The first circuit 302 comprises a first one-shot detection circuit 3022, having a D flip-flop 3028 and a XOR gate 3032, generating a first pulse signal L₁ according to detection of up and down edges of the first phase signal A₁, a second one-shot detection circuit 3024 comprising a D flip-flop 3030 and a XOR gate 3034, generating a second pulse signal L₂ according to detection of up and down edges of the second phase signal B₁, an OR gate 3026 coupled to the first one-shot detection circuit 3022 and the second one-shot detection circuit 3024, generating a first processing signal S₁, wherein the first pulse signal L₁ and the second pulse signal L₂ are generated based on the position change variation of either of first phase signal A₁ or second phase signal B₁.

FIG. 3 is a circuit diagram of the second circuit in accordance with the first embodiment of the present invention. The second circuit 304 comprises a third one-shot detection circuit 3042 generating the first processing signal S₁ according to detection of up and down edges of either the first phase signal A₁ or second phase signal B₁, a first count value V₁ stored in a first register 3046 as the first processing signal A₁ resetting a first up-counter 3044, a first divider 3048 (divided by 2) coupled to the first register 3046, generating a second count value V₂ according to the first count value V₁ divided by 2, a first down-counter 3050 coupled to the first divider 3048, generating a first zero detection signal Z₁ to control a first zero detector 3052 outputting the second processing signal S₂ when the second count value V₂ is zero, wherein the second processing signal S₂, is a half period of the first processing signal S₁, based on the position change variation of either the first phase signal A₁ or second phase signal B₁.

FIG. 4 is a circuit diagram of the third circuit in accordance with the first embodiment of the present invention. The third circuit 306 comprises a fourth one-shot detection circuit 3062 generating the first processing signal S₁ according to detection of up or down edges of either of first phase signal A₁ or second phase signal B₁, a third count value V₃ stored in a second register 3066 as the first processing signal S₁ resets a second up-counter 3064, a second divider 3068 (divided by 4) coupled to the second register 3066, generating a fourth count value V₄ according to the third count value V₃ divided by 4, a second down-counter 3070 coupled to the second divider 3068, generating a second zero detection signal Z₂ to control a second zero detector 3072 outputting the third processing signal S₃ when the fourth count value V₄ is zero, wherein the third processing signal S₃, is one fourth of the first processing signal S₁, based on the position change variation of either of first phase signal A₁ or second phase signal B₁.

First, second, third, and fourth time intervals (PD₁, PD₂, PD₃, PD₄) are acquired by the selector 308 from consecutive and adjacent first pulse signal L₁ and second pulse signal L₂. FIG. 5 is a first waveform diagram of the encoder in accordance with the first embodiment of the present invention. If all time intervals are equal (PD₁=PD₂=PD₃=PD₄), then the first circuit 302 selected by a first selection signal N₁ output by the selector 308. FIG. 6 is a second waveform diagram of the encoder in accordance with the first embodiment of the present invention. If the first time interval PD₁ plus third time interval PD₃ is equal to the second time interval PD₂ plus fourth time interval PD₄ (PD₁+PD₃=PD₂+PD₄), then the second circuit 304 is selected by a second selection signal N₂ output by the selector 308. FIG. 7 is a third waveform diagram of the encoder in accordance with the first embodiment of the present invention. In other cases, the third circuit 306 is selected by a third selection signal N₃ output by the selector 308.

Second Embodiment

FIG. 8 is a block diagram of the inkjet printer with correction device in accordance with the second embodiment of the present invention. The inkjet printer with correction device comprises an encoder strip 10, an encoder 20 moving on the encoder strip 10 to generate a first phase signal A₁ and a second phase signal B₁, both are period signals, a speed control circuit 40 coupled to the selector 308, controlling the speed of inkjet printer motor 60 according to the first processing signal S₁, the second processing signal S₂, or the third processing signal S₃, a position detection and control circuit 50 coupled to the selector 308, controlling the position of inkjet printer motor 60 according to the first processing signal S₁, the second processing signal S₂, or the third processing signal S₃.

Third Embodiment

FIG. 9 is a flow chart of the correction method in accordance with the third embodiment of the present invention. The correction method for processing a first phase signal A₁ and second phase signal B₁, are both period signals, produced by an encoder 20 on an encoder strip.

A first processing signal S₁ composed of a first pulse signal L₁ and second pulse signal L₂ is generated according to the first phase signal A₁ and second phase signal B₁, both pulse signals are produced based on the position change variation of first phase signal A₁ and second phase signal B₁. From consecutive and adjacent first pulse signal L₁ and second pulse signal L₂, a first, second, third, and fourth time interval (PD₁, PD₂, PD₃, PD₄) are acquired, wherein the first processing signal S₁ is provided to an electronic device, controlling the speed and position of motor 60 as all time intervals are equal (PD₁=PD₂=PD₃=PD₄), wherein the second processing signal S₂ is a half period of the first processing signal S₁.

A second processing signal S₂ is generated based on the position change variation of either first phase signal A₁ or the second phase signal B₁ as the first time interval PD₁ plus third time interval PD₃ is equal to the second time interval PD₂ plus fourth time interval PD₄ (PD₁+PD₃=PD₂+PD₄), controlling the speed and position of motor 60 of an electronic device. In other cases, generating a third processing signal S₃ based on the position change variation from a first level to a second level of either the first phase signal A₁ or the second phase signal A₂, controlling the speed and position of motor 60 of an electronics device, wherein the third processing signal S₃ is one fourth of the first processing signal S₁.

In the invention, the correction device is for reducing imperfect duty-cycles output by the encoder or others, reducing manufacturing costs and complexity, and output of signals to control speed and position of the inkjet printer motor, thus increasing printing quality.

While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements. 

1. A correction device for processing a first and second phase signals, both are period signals, produced by an encoder on an encoder strip, the correction device comprising: a first circuit generating a first processing signal composed of a first and second pulse signals according to the first and second phase signals, both pulse signals produced based on the position change variation of first and second phase signals; a second circuit generating a second processing signal based on the position change variation of either the first or second phase signals; a third circuit generating a third processing signal based on the position change variation from a first level to a second level of either the first or second phase signals; a selector selecting one of the first, second, or third circuits according to the first processing signal.
 2. The correction device as claimed in claim 1, wherein the selector from consecutive and adjacent first and second pulse signals, acquires a first, second, third, and fourth time intervals are acquired based on the first processing signal, if all time intervals are equal, then the first circuit is selected by a first selection signal, and if the first plus third time interval is equal to the second plus fourth time interval, then the second circuit is selected by a second selection signal, otherwise the third circuit is selected by a third selection signal.
 3. The correction device as claimed in claim 1, wherein the first circuit comprises a first one-shot detection circuit generating the first pulse signal according to detection of up and down edges of the first phase signal, a second one-shot detection circuit generating the second pulse signal according to detection of up and down edges of the second phase signal, an OR gate coupled between the first and second one-shot detection circuits, generating the first processing signal.
 4. The correction device as claimed in claim 1, wherein the second circuit comprises a third one-shot detection circuit generating the first processing signal according to detection of up and down edges of either the first or second phase signals, a first count value stored in a first register as the first processing signal resets a first up-counter, a first divider coupled to the first register, generating a second count value according to the first count value divided by a first value, a first down-counter coupled to the first divider, generating a first zero detection signal to control a first zero detector outputting the second processing signal when the second count value is zero.
 5. The correction device as claimed in claim 4, wherein the first value is 2 and the second processing signal is a half period of the first processing signal.
 6. The correction device as claimed in claim 5, wherein the first divider is a circuit divided by
 2. 7. The correction device as claimed in claim 1, wherein the third circuit comprises a fourth one-shot detection circuit generating the first processing signal according to detection of up or down edges of either the first or second phase signals, a third count value stored in a second register as the first processing signal resets a second up-counter, a second divider coupled to the second register, generating a fourth count value according to the third count value divided by a second value, a second down-counter coupled to the second divider, generating a second zero detection signal to control a second zero detector outputting the third processing signal as the fourth count value is zero.
 8. The correction device as claimed in claim 7, wherein the second value is 4 and the third processing signal is one fourth of the first processing signal.
 9. The inkjet printer with correction device for motor speed and position, the inkjet printer with correction device comprising: an encoder strip; an encoder generating a first and second phase signal, both are period signals, moving on the encoder strip; a first circuit generating a first processing signal composed of a first and second pulse signal according to the first and second phase signals, both pulse signals produced based on the position change variation of first and second phase signals; a second circuit generating a second processing signal produced based on the position change variation of either the first or second phase signals; a third circuit generating a third processing signal produced based on the position change variation from a first level to a second level of either the first or second phase signals; a selector selecting one of the first, second, or third circuits according to the first processing signal. a speed control circuit coupled to the selector, controlling speed of the inkjet printer motor according to the first, second, or third processing signals; a position detection and control circuit coupled to the selector, detecting position of the ink-jet printer motor according to the first, second, or third processing signals.
 10. The inkjet printer with correction device as claimed in claim 9, wherein the selector from consecutive and adjacent first and second pulse signals, and a first, second, third, and fourth time intervals are acquired based on the first processing signal, if all time intervals are equal, then the first circuit is selected by a first selection signal, and if the first plus third time intervals is equal to the second plus fourth time intervals, then the second circuit is selected by a second selection signal, otherwise the third circuit is selected by a third selection signal.
 11. The inkjet printer with correction device as claimed in claim 9, wherein the first circuit comprises a first one-shot detection circuit generating the first pulse signal according to detection of up and down edges of the first phase signal, a second one-shot detection circuit generating the second pulse signal according to detection of up and down edges of the second phase signal, an OR gate coupled between the first and second one-shot detection circuits, generating the first processing signal.
 12. The inkjet printer with correction device as claimed in claim 9, wherein the second circuit comprises a third one-shot detection circuit generating the first processing signal according to detection of up and down edges of either of first or second phase signals, a first count value stored in a first register as the first processing signal resets a first up-counter, a first divider coupled to the first register, generating a second count value according to the first count value divided by a first value, a first down-counter coupled to the first divider, generating a first zero detection signal to control a first zero detector outputting the second process when the second count value is zero.
 13. The inkjet printer with correction device as claimed in claim 12, wherein the first value is 2 and the second processing signal is a half period of the first processing signal.
 14. The inkjet printer with correction device as claimed in claim 9, wherein the third circuit comprises a fourth one-shot detection circuit generating the first processing signal according to detection of up or down edges of either of first or second phase signals, a third count value stored in a second register as the first processing signal resets a second up-counter, a second divider coupled to the second register, generating a fourth count value according to the third count value divided by a second value, a second down-counter coupled to the second divider, generating a second zero detection signal to control a second zero detector outputting the third processing signal as the fourth count value is zero.
 15. The inkjet printer with correction device as claimed in claim 14, wherein the second value is 4 and the third processing signal is one fourth of the first processing signal.
 16. A correction method for processing a first and second phase signals, both are period signals, produced by an encoder on an encoder strip, the correction method comprising: generating a first processing signal composed of a first and second pulse signals according to the first and second phase signals, both pulse signals produced based on the position change variation of first and second phase signals; from consecutive and adjacent first and second pulse signals, a first, second, third, and fourth time intervals are acquired; wherein the first processing signal provided to an electronics device, controlling the motor speed and position as all time intervals are equal; generating a second processing signal based on the position change variation of either the first or second phase signals when the first plus third time intervals is equal to the second plus fourth time intervals, controlling the motor speed and position of an electronic device; others cases, generating a third processing signal produced based on the position change variation from a first level to a second level of either of first or second phase signals, controlling the motor speed and position of an electronic device.
 17. The method as claimed in claim 16, wherein the first value is 2 and the second processing signal is a half period of the first processing signal.
 18. The method as claimed in claim 16, wherein the second value is 4, and the third processing signal is one fourth the first processing signal. 